#include "modebutton.h"
#include <QStylePainter>
#include <QStyleOptionButton>

ModeButton::ModeButton(QWidget *parent)
    : QPushButton(parent)
{

}

void ModeButton::paintEvent(QPaintEvent *event)
{
    QStylePainter p(this);
    QStyleOptionButton option;
    initStyleOption(&option);
    option.state = QStyle::State_Enabled;
    p.drawControl(QStyle::CE_PushButton, option);
}

